package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@TableName("comment")
@ApiModel("评论类")
public class Comment {
    @TableId(value = "comment_id")
    @ApiModelProperty("评论id")
    private int id;
    @TableField("comment_content")
    @ApiModelProperty("评论内容")
    private String con;
    @TableField("commentator_id")
    @ApiModelProperty("评论者id")
    private int cid;
    @TableField("article_id")
    @ApiModelProperty("评论文章id")
    private int aid;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCon() {
        return con;
    }

    public void setCon(String con) {
        this.con = con;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getAid() {
        return aid;
    }

    public void setAid(int aid) {
        this.aid = aid;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", con='" + con + '\'' +
                ", cid=" + cid +
                ", aid=" + aid +
                '}';
    }
}
